#include <bits/stdc++.h>
using namespace std;
#define int long long
string a[11]={"jia","yi","bing"
    ,"ding","wu","ji","geng"
    ,"xin","ren","gui"};
string b[13]={"zi","chou","yin"
    ,"mao","chen","si","wu","wei"
    ,"shen","you","xu","hai"};
void solve()
{
    int n;
    cin>>n;
    n%=60;
    int x=2020%60;
    int y=((n-x)+66)%10;
    int z=((n-x)+60)%12;
    cout<<a[y]<<b[z];
}
signed main()
{
    //ios::sync_with_stdio(false);
    //cin.tie(nullptr);
    int T=1;
    //cin>>T;
    while(T--)
    {
       solve();
    }
    return 0;
}